﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Diagnostics;

/** 
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
 * Description: 
 * Author: Heller (HellerSong@outlook.com)
 * CreationTime: 3/28/2015 6:37:42 PM
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 
 **/
namespace DevGrammar.TestBasic
{
	[TestClass]
	public class TestStackTrace
	{
		[TestMethod]
		public void test_method_call_stack()
		{
			StackFrame[] stackFrames = new StackTrace(true).GetFrames();
			foreach (StackFrame sf in stackFrames)
			{
				Console.WriteLine(sf);
				Console.WriteLine(sf.GetMethod().Name);
			}
		}

	}
}
